projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f07625
)
Fix previous commit
author
Emmanuele Bassi
<ebassi@gnome.org>
Wed, 16 Dec 2015 12:41:16 +0000
(12:41 +0000)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Wed, 16 Dec 2015 12:41:16 +0000
(12:41 +0000)
The scale parameter was missing.
gdk/gdkpixbuf-drawable.c
patch
|
blob
|
history
diff --git
a/gdk/gdkpixbuf-drawable.c
b/gdk/gdkpixbuf-drawable.c
index 2f780a57532f100fa4984cd4fa14bc7399e9c812..f865e32b89aca67ccb3978275881712b6715ceea 100644
(file)
--- a/
gdk/gdkpixbuf-drawable.c
+++ b/
gdk/gdkpixbuf-drawable.c
@@
-91,11
+91,13
@@
gdk_pixbuf_get_from_window (GdkWindow *src,
cairo_surface_t *copy;
cairo_t *cr;
GdkPixbuf *dest;
+ int scale;
g_return_val_if_fail (GDK_IS_WINDOW (src), NULL);
g_return_val_if_fail (gdk_window_is_viewable (src), NULL);
surface = _gdk_window_ref_cairo_surface (src);
+ scale = gdk_window_get_scale_factor (window);
/* We do not know what happened to this surface outside of GDK.
* Especially for foreign windows, they will have been modified